package com.test.test.utils;

import com.test.test.dto.common.RespConsts;
import com.test.test.dto.common.ResultResp;

public class ResultRespUtil {

	public  static void successCode(ResultResp resp){
		resp.setCode(RespConsts.OPERATE_SUCCESS);
		resp.setMsg(RespConsts.getPrompt(RespConsts.OPERATE_SUCCESS));
		resp.setSuccess(true);
	}
	
	public  static void errorCode(ResultResp resp){
		resp.setCode(RespConsts.OPERATE_SUCCESS);
		resp.setMsg(RespConsts.getPrompt(RespConsts.OPERATE_SUCCESS));
		resp.setSuccess(true);
	}
} 
